<?php 
$arr = explode('/',$_SERVER[SCRIPT_NAME]);
$len = count($arr);
?>

<div id="header" class="png_bg">
    <div id="head_wrap" class="container_12">
        <!-- start of logo - you could replace this with an image of your logo -->
        <div id="logo" class="grid_4">
          <h1>e网批发商后台管理</h1>
        </div>
        <!-- end logo -->
        <!-- start control panel -->
        <div id="controlpanel" class="grid_8">
            <ul>
                <li><a href="tencent://message/?Menu=yes&uin=237528462& Service=300&sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45">服务QQ号：12345678</a></li>
                <li><a>服务电话：12345678</a></li>
                <li><a>服务微信：12345678</a></li>
                <li><a href="loginout.php" class="last">退出登录</a></li>
                
            </ul>
            
        </div>
        <!-- end control panel -->
        <!-- start navigation -->
        <div id="navigation" class=" grid_12">
            <ul>
                <li> 
                    <a href="index.php" <?php if ($arr[($len-1)]=='index.php'|| $arr[($len-1)]=='file2.php'){ ?> class="active"<?php } ?>  > 订单管理 
                    </a>
                </li>
                <li>
                    <a href="goods2.php" <?php if ($arr[($len-1)]=='goods2.php'|| $arr[($len-1)]=='addgoods.php' || $arr[($len-1)]=='addgoodsimg.php' || $arr[($len-1)]=='tejia.php' || $arr[($len-1)]=='addgoods2.php' || $arr[($len-1)]=='xihuan.php'|| $arr[($len-1)]=='youhuiquan.php' || $arr[($len-1)]=='tejiatime.php' || $arr[($len-1)]=='addtime.php' ){ ?> class="active"<?php } ?>  >商品管理
                    </a>
                </li>
                <li>
                    <a href="shequ.php" <?php if ($arr[($len-1)]=='shequ.php'|| $arr[($len-1)]=='shequ.php'){ ?> class="active"<?php } ?>  >厂商管理  
                    </a>
                </li>
                <?php if($_SESSION['type'] == 0) {?>
                    <li>
                        <a href="sub.php?action=get_sub" <?php if ($arr[($len-1)]=='sub.php'|| $arr[($len-1)]=='sub.php?action=get_sub'){ ?> class="active" <?php } ?>  >子账号管理
                        </a>
                    </li>
                <?php } ?>
                <li>
                    <a href="water.php" <?php if ($arr[($len-1)]=='water.php'|| $arr[($len-1)]=='water.php'){ ?> class="active"<?php } ?>  >流水管理  
                    </a>
                </li>
            </ul>
        </div>
        <!-- end navigation -->
    </div><!-- end headwarp  -->
</div><!-- end header -->


